Skip to main content link. Accesskey S
  • HCL Logo
  • HCL Notes and Domino wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Lotus iNotes > Lotus iNotes deployment scenarios > Sample iRule for Lotus Domino and F5 exercising ServersLookup
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

URL Patterns for iNotes

These are the url patterns iNotes 8.5.2 uses. This will be helpful when trying to setup a reverse proxy to catch URL patterns.

Lotus iNotes 8.5.2 - Detailed System Requirements

These are basic System Requirements for Lotus iNotes 8.5.2

Achieving high availability with IBM Lotus iNotes

Learn how to achieve high availability for IBM® Lotus® iNotes® through the use of a software load balancer or hardware such as an Application Delivery Controller (ADC) in conjunction with IBM Lotus Domino® clustering. This article discusses some of the challenges related to properly load balancing ...

Sample iRule for Lotus Domino and F5 exercising ServersLookup

Sample iRule This iRule exercises Servers Lookup to help locate users mail file across the domain. DominoServers is the server pool we are using in our sample on Big IP device. when CLIENTACCEPTED { set the status 'needs server' 1 or 0. log local0. "got initial connect needs a lookup." ...

ServersLookup Form for IWAReder to return User replicas for Load Balancers and Reverse Proxies to use

    The ServersLookup form has one "Computed for display" field called HTMLHead with a type of text. This field contains the formulas shown here. Debug statements have been added so that, if the form is opened manually from a browser, you can see the results from the formulas. To open the form ...
Community articleSample iRule for Lotus Domino and F5 exercising ServersLookup
Added by IBM contributor~Juan Minjumigenakoi | Edited by ~Sanjay Umluterakoi on February 15, 2011 | Version 2
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.

Sample iRule

This iRule exercises Servers Lookup to help locate users mail file across the domain. DominoServers is the server pool we are using in our sample on Big IP device.

    ##
when CLIENT_ACCEPTED {
	#set the status - 'needs server' 1 or 0.
	log local0. "got initial connect - needs a lookup."
	set needs_server 0
}

when HTTP_REQUEST {
  1. capture original request - destined for a real server.
if { ([HTTP::uri]ends_with ".nsf") and not ([HTTP::uri] contains "names.nsf")}{ set original_request [HTTP::request] set needs_server 1 set nsf "[substr [HTTP::uri] 1 ".nsf"].nsf" HTTP::uri/iwaredir.nsf/ServersLookup?OpenForm&nsfpath=$nsf } else { set needs_server 0 }
  1. check to see if we need a server.Else, send to our dest. pool
if { $needs_server == 1 } { #dummyServer is our ?mapping? server to query against. It returns the header and its values. pool DominoServers } else { pool DominoServers } } when HTTP_RESPONSE { if { $needs_server == 1 } { set server_list [split [HTTP::headerX-Domino-ClusterServers], ,] HTTP::collect[HTTP::headerContent-Length] } } when HTTP_RESPONSE_DATA { foreach {svr} $server_list { if { "" ne $svr }{ set dest [findclass [string trim $svr] ::NSREPLICASERVERS " "] log local0. "Servername is [string trim $svr]" log local0. "$dest" #TEST.ONE.TWO.COM 10.100.100.80:8080 #set node_addr [getfield [findclass $svr domino-servers " "] ":" 1] #set node_port [getfield [findclass $svr domino-servers " "] ":" 2] log local0. "server is: $node_addr on $node_port...issuing HTTP::collect" if { [LB::status pool DominoServers member $dest 80 ] eq "up" } { log local0. "Selecting $node_addr:$node_port" pool DominoServers member $dest HTTP::retry$original_request break } } } set needs_server 0 }
    1. #


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (2)Feb 15, 2011, 8:33:17 PM~Sanjay Umluterakoi  Fixed server pool name in HTTP_RESPONSE_DATA section (IrisServers cha...
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility